
<script>
  import $ from 'dfish-widget'
  import Widget from '../Widget.vue'

  export default {
    mixins: [Widget],
    data() {
      return {
        name: 'TR',
        remark: '表格的行',
        attrs: [{
          name: 'expanded',
          remark: '是否展开子节点行',
          type: 'Boolean',
        }, {
          name: 'children',
          remark: '子节点数据集合。本参数应配合w-tbody的row插槽使用。',
          type: 'Array',
        }],
        slots: [{
          name: 'default',
          remark: '单元格',
          option: 'w-td'
        }, {
          name: 'row',
          remark: '下一级的行',
          option: 'w-tr'
        }],
        computed: [{
          name: 'level',
          remark: '层级',
          type: 'Number',
          option: ''
        }]
      }
    }
  }
</script>
